import service from "@/utils/request"

import LoginWork from "@/utils/LoginWork"
// 条码查询
export const BarcodeQuery = (parms:any) => {
    return service.post<any,any>(`/produce/PcStitchBarcodeHeadList`,parms)
}

// 生成鞋面标签
export const GenerateUpperLabel = (parms:any) => {
    return LoginWork.post<any,any>(`/produce/GenerateShoeUpperLabels`,parms)
}

// 显示号码
export const displaySizeNumber = (parms:any) => {
    return LoginWork.post<any,any>(`/produce/DisplayNumber`,parms)
}

// 号码查询
export const SizeNoQuery = (parms:any) => {
    return LoginWork.post<any,any>(`/style/getStyleSizeData`,parms)
}

// 号码查询
export const BatchPrinting = (parms :any) => {
    return LoginWork.post<any,any>(`/produce/PrintShoeUpperLabels`,parms)
}

// 重新生成标签
export const RegenerateTag = (lotNo:string,parms:any) => {
    return LoginWork.post<any,any>(`/produce/regenerate?lotNo=${lotNo}`,parms)
}

// 重新生成打印标签查询
export const RegeneratesThePrintLabelQuery = (lotNo:string) => {
    return service.post<any,any>(`/produce/regenerateSizeNoList?lotNo=${lotNo}`)
}

// 查询
export const query = (barcode:string) => {
    return service.post<any,any>(`/produce/checkLabel?barcode=${barcode}`)
}

// 拆分鞋面标签
export const SplitTheUpperLabel = (barcode:any,parms:any) => {
    return LoginWork.post<any,any>(`/produce/splitLabel?barcode=${barcode}&caseQtys=${parms}`)
}

// 重打标签
export const RedrawTheLabel = (barcode:any) => {
    return LoginWork.post<any,any>(`/produce/reprint?barcode=${barcode}`) 
}